package com.karson.common.request;

import com.karson.common.model.SystemMeta;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

@Data
public class MenuRequest {
    @Schema(description="ID")
    private Integer id;
    @Schema(description="父级ID")
    private Integer pid;
    @Schema(description="名称")
    @Length(max = 100, message = "菜单名称不能超过100个字符")
    private String name;
    @Schema(description="权限标识")
    private String perms;
    @Schema(description="路径参数")
    private String path;
    @Schema(description="组件路径")
    private String component;
    @Schema(description="排序")
    private Integer sort;
    @Schema(description = "菜单拓展对象")
    private SystemMeta meta;
}
